<?php

namespace app\components\helpers;

class ToolsHelper
{
    public static function nowDate()
    {
        //return date("Y-m-d H:i:s");
        return time();
    }

    public static function dateFormat($time)
    {
        return $time ? date("Y-m-d H:i:s", $time) : '-';
    }
}